#ifndef SPHEREGEODE_H
#define SPHEREGEODE_H
#include <Define.h>
#include <osg/Geode>
#include <osg/ShapeDrawable>
#include <osg/Geometry>
class OSG_EDITOR_DLL SphereGeode : public osg::Geode
{
public:
    SphereGeode();
    virtual ~SphereGeode();

    double getRadius();
    double getFineness();

    void setRadius(double radius);
    void setFineness(double fineness);
protected:
    void buildChildNode();

private:
    double m_radius;
    double m_fineness;
    osg::ref_ptr<osg::Sphere> m_sphere;
    osg::ref_ptr<osg::ShapeDrawable> m_shpereShapeDrawable;
    osg::ref_ptr<osg::Geometry> m_coordinateGeom;

};

#endif // SPHEREGEODE_H
